<?php
/**
 * @name celebrityimage.php
 * @msg 明星图库
 * @date Created on 2014-12-24
 */
namespace haibao\www\model\data;

Class CelebrityImage extends Base{
	
	/**
	 * 图片类型 (图片类型 1:图像，2:满屏图，3...)
	 */
	const IMAGE_TYPE_PICTURE = 1;
	const IMAGE_TYPE_SCREEN = 2;
	const IMAGE_TYPE_OTHER = 3;
	
	/**
	 * 明星id
	 */
	public $CelebrityId;
	/**
	 * 图片id ImageCategory表ID
	 */
	public $ImageId;
	/**
	 * 标签id
	 */
	public $TagId;
	/**
	 * 图片类型
	 */
	public $ImageType;
	public $ImageUrl;
	public $OriginalImageUrl;
	public $Image;
	
	
	public function __construct(){
		parent::__construct();
		
		$this->intField('CelebrityId', 'CelebrityId');
		$this->intField('ImageId', 'ImageId');
		$this->intField('TagId', 'TagId');
		$this->intField('ImageType', 'ImageType');

		$this->setTableName('CelebrityImage');
	}
	/**
	 * 获取图片类型
	 */
	public function getImageType(){
		return array(self::IMAGE_TYPE_PICTURE,self::IMAGE_TYPE_SCREEN,self::IMAGE_TYPE_OTHER);
	}
}
